package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UseragreementMapper;
import com.ruoyi.system.domain.Useragreement;
import com.ruoyi.system.service.IUseragreementService;

/**
 * 用户协议管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-30
 */
@Service
public class UseragreementServiceImpl implements IUseragreementService 
{
    @Autowired
    private UseragreementMapper useragreementMapper;

    /**
     * 查询用户协议管理
     * 
     * @param id 用户协议管理主键
     * @return 用户协议管理
     */
    @Override
    public Useragreement selectUseragreementById(Long id)
    {
        return useragreementMapper.selectUseragreementById(id);
    }

    /**
     * 查询用户协议管理列表
     * 
     * @param useragreement 用户协议管理
     * @return 用户协议管理
     */
    @Override
    public List<Useragreement> selectUseragreementList(Useragreement useragreement)
    {
        return useragreementMapper.selectUseragreementList(useragreement);
    }

    /**
     * 新增用户协议管理
     * 
     * @param useragreement 用户协议管理
     * @return 结果
     */
    @Override
    public int insertUseragreement(Useragreement useragreement)
    {
        return useragreementMapper.insertUseragreement(useragreement);
    }

    /**
     * 修改用户协议管理
     * 
     * @param useragreement 用户协议管理
     * @return 结果
     */
    @Override
    public int updateUseragreement(Useragreement useragreement)
    {
        return useragreementMapper.updateUseragreement(useragreement);
    }

    /**
     * 批量删除用户协议管理
     * 
     * @param ids 需要删除的用户协议管理主键
     * @return 结果
     */
    @Override
    public int deleteUseragreementByIds(Long[] ids)
    {
        return useragreementMapper.deleteUseragreementByIds(ids);
    }

    /**
     * 删除用户协议管理信息
     * 
     * @param id 用户协议管理主键
     * @return 结果
     */
    @Override
    public int deleteUseragreementById(Long id)
    {
        return useragreementMapper.deleteUseragreementById(id);
    }
}
